2023 Method
Changes 0
M

WorksharingUtils.CheckoutElements

Description:
Obtains ownership for the current user of as many specified elements as possible.
Remarks:

For best performance, checkout all elements in one big call, rather than many small calls.

Revit may check out additional elements that are needed to check out the elements you requested. For example, if you request an element that is in a group, Revit will check out the entire group.

Overloads (2):
CheckoutElements(Document,ISet[ElementId],TransactWithCentralOptions)
public static ISet<ElementId> CheckoutElements(
	Document document,
	ISet<ElementId> elementsToCheckout,
	TransactWithCentralOptions options
)
Return Value ISet<ElementId> The ids of all specified elements that are now owned (but possibly out of date), including all that were owned prior to the function call.